//请求统一管理
import requests from "@/api/requests";

//上传文件
export const uploadFile=(file)=>requests({url:`/emoji/upload`,method:'post',data:file})
//上传表情
export const addEmoji=(data)=>requests({url:'/emoji/add',method:'post',data})
//查询全部表情
export const findAll=(reviewStatus)=>requests({url:`/emoji/findAll?reviewStatus=${reviewStatus}`,method:'get'})
//搜索表情模糊查询
export const findByKey=(key)=>requests({url:`/emoji/selectKey?key=${key}`,method:'get'})
//更新审核状态
export const updateReviewState=(data)=>requests({url:`/emoji/update`,method:'post',data})
//删除表情
export const deleteEmoji=(data)=>requests({url:'/emoji/delete',method:'post',data})






//查询所有标签
export const findAllTag=()=>requests({url:'/tag/findAll',method:'get'})
//通过标签查询表情
export const findByTag=(data)=>requests({url:'/tag/findByTag',method:'post',data})
//删除标签
export const deleteTag=(data)=>requests({url:'/tag/delete',method:'post',data})
//添加标签
export const addTag=(data)=>requests({url:'/tag/add',method:'post',data})
